package com.lin.cms.service;

import com.lin.cms.common.security.BadCredentialsException;
import com.lin.cms.common.security.UsernameNotFoundException;
import com.lin.cms.domain.User;

public interface UserService {
	User selectByPrimaryKey(Integer userId);
	
	public Integer errorRemaining(String username);
	
	public User login(String username, String password, String ip)
			throws UsernameNotFoundException, BadCredentialsException;
	
}
